//
//  UserManager.h
//  星道教育
//
//  Created by xingdao on 15/11/14.
//  Copyright © 2015年 xingdao. All rights reserved.
//

#import <Foundation/Foundation.h>
#define klocalizeString(name) NSLocalizedString((@#name), nil)
@class Model;
@interface UserManager : NSObject
typedef NS_ENUM(NSInteger,nameType)
{
    JFJG = ("家风家规", 1),
    MHSG= ("美好时光", 2),
    KLYD=("快乐约定", 3),
    GEYN=("感恩有你", 4),
    SGBH=("时光宝盒", 5),
    XXGG=("星星公告", 6),
    GRB=("光荣榜", 7),
    BLCG=("百炼成钢", 8),
    QNXZ=("全能星战", 9),
    SRXB=("十人小班", 10),
    XXCJ=("学校成绩", 11),
    JTZY=("家庭作业", 12),
    ZZTW=("在线提问", 13),
    TBSP=("特别视频", 14),
    XXWYH=("星星委员会", 15),
    XGDD=("星光大道", 16),
    WCBF=("五彩缤纷", 17),
    XGSY=("星光闪耀", 18),
    QJZDY=("全家总动员", 19),
    XXDLB=("星星大礼包", 20),
    GYHZ=("关于孩子", 21),
    WDZG=("我的战果", 22),
    YLYGL=("益乐园管理", 23),
    LSPY=("老师评语", 24),
    QRTGL=("亲人团管理", 25),
    JBXX=("基本信息", 26),
    WDGX=("我的感想", 27),
    WDYD=("我的约定", 28),
    CLSS=("处理申诉", 29),
    GXAPP=("更新APP", 30),
    TZXL=("拓展训练", 31),
    MRMJ=("名人名家", 32),
    YYSJ=("音乐世界", 33),
    KLYD2=("快乐阅读", 34),
    MHXK=("漫画星空", 35),
    XXYC=("星星原创", 36),
    QSMX=("奇思妙想", 37),
    XQAH=("兴趣爱好", 38),
    YLY=("益乐园", 39),
    CTJZY=("益乐园", 40)
};
@property (nonatomic,strong) NSDictionary *dic;
@property (nonatomic,strong) NSArray *dates;
@property (nonatomic,copy) NSString *uid;  // 获取uid
@property (nonatomic,strong) NSMutableArray *modelArrs;
@property (nonatomic,copy) NSString *rolecode; //判断家长、孩子、老师的账号
@property (nonatomic,copy) NSString *formate;
@property (nonatomic,copy) NSString *flowers;
@property (nonatomic,copy) NSString *invite_uid;
@property (nonatomic,copy) NSString *avatar;
@property (nonatomic,copy) NSString *authCode;
@property (nonatomic,copy) NSString *UID;
@property (nonatomic,copy) NSString *pwd;
@property (nonatomic,copy) NSString *petName;
@property (nonatomic,strong) NSMutableDictionary *dldic;
@property (nonatomic,copy) NSString *myName;
@property (nonatomic,assign) BOOL isLogin;
@property (nonatomic,copy) NSString *telephone;
@property (nonatomic,copy) NSString *password;
//@property (nonatomic,copy) NSString *chatStyle;
//@property (nonatomic,strong) NSMutableArray *liXiangDatas;
@property (nonatomic,copy) NSString *myQid;
@property (nonatomic,copy) NSString *isConnected;
@property (nonatomic,copy) NSString *nameType;
@property (nonatomic,copy) NSString  *topicid;
@property (nonatomic,copy) NSString  *nianji;


@property (nonatomic,assign) BOOL isLogIning;
@property (nonatomic,copy) NSString *tableName;
@property (nonatomic,copy) NSString *isShuPing;
@property (nonatomic,assign) BOOL onTime;
@property (nonatomic,assign) BOOL onclick;



@property (nonatomic,strong) NSDictionary *defiDic;


@property (nonatomic,strong) NSMutableDictionary *allDatasDic;
@property (nonatomic,copy) NSString *jiemianName;
@property (nonatomic,copy) NSString *jiemianName1; //聊天界面
@property (nonatomic,strong) NSMutableArray *arrDatas;


//改
@property (nonatomic,strong) NSMutableArray *jieShouDatas;
@property (nonatomic,copy) NSString *tableNameDiff; //作用：当并不是当前tablename发来的信息，会去显示红点

@property (nonatomic,assign) BOOL lianjieChenggong;
@property (nonatomic,copy) NSString *kidUid;

+ (UserManager *)modelManager;
- (void)getThePersonDatas:(NSDictionary *)dic;

+ (void)parentSeleted:(NSString *)str VC:(UIViewController *)vc andWho:(NSString *)name andTheMessage:(NSString *)message;

//+ (void)kidRequst:(UIViewController *)vc andTheDatas:(NSMutableDictionary *)dic;
- (NSMutableArray *)jieXiDiQu:(NSString *)key andTheNSArray:(NSArray *)arr andTheId:(NSInteger)termType;

- (NSMutableDictionary *)clearTheNull:(NSDictionary *)dic;
@end
